package com.chenxiao.Observer;

/**
 * @Author: CX
 * @Date: Created in  2024/04/07 15:31
 * @version: v1.0
 * @Description: TODO
 **/
public class app {
    public static void main(String[] args) {
        Observable o = new Subject();
        WxUser user1 = new WxUser("张三");
        WxUser user2 = new WxUser("李四");
        WxUser user3 = new WxUser("王五");
        o.add(user1);
        o.add(user2);
        o.add(user3);
        o.notify("薛之谦演唱会要来到广州啦!");

    }
}
